package com.asset.mapper;

import com.asset.pojo.PurchaseDetail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

/**
 * 采购详情访问接口
 * @author 11725
 */
public interface PurchaseDetailMapper extends Mapper<PurchaseDetail> {

    /**
     * 更新采购清单
     * @param list
     * @param id
     * @return
     */
    @Update("UPDATE tab_purchase_detail SET purchase_list = #{list} WHERE purchase_id = #{id}")
    int update(@Param("id") Long id, @Param("list") String list);
}
